package org.xobo.finance.helper.company.entity;

import java.math.BigDecimal;
import java.util.Collection;

import javax.persistence.Entity;
import javax.persistence.Transient;

import org.xobo.finance.helper.base.domain.BaseDomain;
import org.xobo.finance.helper.invoice.entity.Invoice;

import com.bstek.dorado.annotation.PropertyDef;

@Entity
public class Company extends BaseDomain {
  /**
   * 
   */
  private static final long serialVersionUID = 1L;

  @PropertyDef(label = "企业名称")
  private String name;
  @PropertyDef(label = "纳税人识别号")
  private String taxpayerNo;
  @PropertyDef(label = "注册状态")
  private int regStatus;
  @PropertyDef(label = "小微企业")
  private Boolean microAndSmall;

  @PropertyDef(label = "最近一年销售额")
  private BigDecimal recentSalesAmount;
  @PropertyDef(label = "当月可开票额")
  private BigDecimal avaliableAmount;
  
  private Collection<Invoice> invoiceList;

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public int getRegStatus() {
    return regStatus;
  }

  public void setRegStatus(int regStatus) {
    this.regStatus = regStatus;
  }

  public Boolean getMicroAndSmall() {
    return microAndSmall;
  }

  public void setMicroAndSmall(Boolean microAndSmall) {
    this.microAndSmall = microAndSmall;
  }

  public String getTaxpayerNo() {
    return taxpayerNo;
  }

  public void setTaxpayerNo(String taxpayerNo) {
    this.taxpayerNo = taxpayerNo;
  }

  @Transient
  public BigDecimal getRecentSalesAmount() {
    return recentSalesAmount;
  }

  public void setRecentSalesAmount(BigDecimal recentSalesAmount) {
    this.recentSalesAmount = recentSalesAmount;
  }

  public BigDecimal getAvaliableAmount() {
    return avaliableAmount;
  }

  public void setAvaliableAmount(BigDecimal avaliableAmount) {
    this.avaliableAmount = avaliableAmount;
  }

  @Transient
  public Collection<Invoice> getInvoiceList() {
    return invoiceList;
  }

  public void setInvoiceList(Collection<Invoice> invoiceList) {
    this.invoiceList = invoiceList;
  }

  
}
